package framework.widgets;

import framework.core.CroppedRectangle;
import framework.types.TPoint.IntPoint;
import pixi.core.display.Container;
import framework.types.Align;
import framework.types.TCoord.IntCoord;


class Widget extends CroppedContainer{

	private var subSkinsVisible:Bool;

    public function new() {
    }

	public function createWidget<T>(type:String, skin:String, coord:IntCoord, align:Align, name:String):T{
		this.setPosition()
	}

	/**
	*
	**/
	public function setPosition(point:IntPoint):Void{

	}


	/**
	*
	**/
	private function _updateView():Void{
		var margin = _croppedParent != null ? checkMargin() : false;

		if(margin){

		}else if(!_isMargin){

		}
		_isMargin = margin;

		setSubSkinVisible(true);
	}

	private function setSubSkinVisible(visible:Bool):Void{
		if(subSkinsVisible == visible){
			return;
		}

		subSkinsVisible = visible;
		updateSkinItemView();
	}

	private function updateSkinItemView():Void{

	}

}
